package com.panfeng.xcloud.component.oss.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 阿里云oss配置类
 *
 * @author xiaobo
 * @date 2019-05-22
 */
@Configuration
@ConditionalOnExpression("!'${aliyun.oss}'.isEmpty()")
@ConfigurationProperties(prefix = "aliyun.oss")
@Data
public class AliyunOSSPropConfig {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketname;
    private Integer machineId;

}
